package com.aspose.cells;

class zbks extends zcj {
   zbks(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   void a() {
      com.aspose.cells.b.a.b.a.zf var1 = this.a.e();
      this.a.a(4);
      com.aspose.cells.b.a.b.zq var2 = new com.aspose.cells.b.a.b.zq(this.c, this.d, this.e.k().h(), this.e.k().i());
      com.aspose.cells.b.a.b.a.ze var3 = new com.aspose.cells.b.a.b.a.ze();
      var3.a(var2);
      com.aspose.cells.b.a.b.zc var4 = zbul.a(this.e.l(), var3);
      com.aspose.cells.b.a.b.zm var5 = zbul.a(this.e.m());
      this.a.a(var4, var2);
      this.a.a(zbul.a(this.e.m()), var2);
      com.aspose.cells.b.a.b.a.ze var6 = new com.aspose.cells.b.a.b.a.ze();
      var6.a(this.e.h() + this.e.k().h() * 0.3F + this.f, this.e.i() + this.e.k().i() * 0.3F + this.f, this.e.k().h() * 0.1F, this.e.k().i() * 0.1F);
      com.aspose.cells.b.a.b.zc var7 = null;
      if (this.e.l().d()) {
         var7 = zbul.a(this.e.l(), var6, 0.8F, 0.0F);
      } else {
         var7 = zbul.a(this.e.l(), var2, 0.8F, 0.0F);
      }

      this.a.a(var7, this.e.h() + this.e.k().h() * 0.3F + this.f, this.e.i() + this.e.k().i() * 0.3F + this.f, this.e.k().h() * 0.1F, this.e.k().i() * 0.1F);
      this.a.a(var5, this.e.h() + this.e.k().h() * 0.3F + this.f, this.e.i() + this.e.k().i() * 0.3F + this.f, this.e.k().h() * 0.1F, this.e.k().i() * 0.1F);
      com.aspose.cells.b.a.b.a.ze var8 = new com.aspose.cells.b.a.b.a.ze();
      var8.a(this.e.h() + this.e.k().h() * 0.6F + this.f, this.e.i() + this.e.k().i() * 0.3F + this.f, this.e.k().h() * 0.1F, this.e.k().i() * 0.1F);
      com.aspose.cells.b.a.b.zc var9 = null;
      if (this.e.l().d()) {
         var9 = zbul.a(this.e.l(), var8, 0.8F, 0.0F);
      } else {
         var9 = zbul.a(this.e.l(), var2, 0.8F, 0.0F);
      }

      this.a.a(var9, this.e.h() + this.e.k().h() * 0.6F + this.f, this.e.i() + this.e.k().i() * 0.3F + this.f, this.e.k().h() * 0.1F, this.e.k().i() * 0.1F);
      this.a.a(var5, this.e.h() + this.e.k().h() * 0.6F + this.f, this.e.i() + this.e.k().i() * 0.3F + this.f, this.e.k().h() * 0.1F, this.e.k().i() * 0.1F);
      float var10 = 2.0F * this.e.k().h() / 9.0F;
      float var11 = 7.0F * this.e.k().i() / 10.0F;
      float var12 = 5.0F * this.e.k().h() / 9.0F;
      float var13 = 1.0F * this.e.k().i() / 10.0F;
      float var14 = 0.0F;
      float var15 = 0.0F;
      float var16 = 0.0F;
      float var17;
      if (this.e.l.a.size() > 0) {
         var17 = com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a());
         if (var17 < 16473.0F) {
            var14 = -((16473.0F - var17) / 1888.0F) * var13;
         } else if (var17 == 16473.0F) {
            var14 = 0.0F;
         } else {
            var14 = (var17 - 16473.0F) / 1888.0F * var13;
         }
      } else {
         var14 = 0.5F * var13;
      }

      var17 = Math.abs(var14);
      if (var17 != 0.0F) {
         var15 = (16.0F * var17 * var17 + var12 * var12) / 16.0F / var17;
         var16 = com.aspose.cells.b.a.ze.a((Object)(180.0D * Math.asin((double)(var12 / 2.0F / var15)) / 3.141592653589793D));
      }

      if (var14 < 0.0F) {
         this.a.a(var5, var10 + var12 / 2.0F - var15 + this.f + this.e.h(), var11 + var13 / 2.0F - var17 + this.f + this.e.i(), 2.0F * var15, 2.0F * var15, 270.0F - var16, 2.0F * var16);
      } else if (var14 > 0.0F) {
         this.a.a(var5, var10 + var12 / 2.0F - var15 + this.f + this.e.h(), var11 + var13 / 2.0F + var17 - 2.0F * var15 + this.f + this.e.i(), 2.0F * var15, 2.0F * var15, 90.0F - var16, 2.0F * var16);
      } else {
         this.a.b(var5, var10 + this.f, var11 + var13 / 2.0F + this.f + this.e.i(), var10 + var12 + this.f + this.e.h(), var11 + var13 / 2.0F + this.f + this.e.i());
      }

      super.b();
      this.a.a(var1);
   }
}
